function A () {
   this.result = 0
   this.cruuying = cruuying
}

function cruuying (args) {
  this.result = args + this.result
  return ar => this.cruuying(ar)
}


var obj = new A()
var fn = obj.cruuying.bind(obj)
fn(1)(2)(3)(4)(5)

console.log(obj.result)


// test - 第二次写
function fnT(cb) {
  let result = 0
  return function comput(args) {
    result = args + result
    cb(result)
    return args => comput(args)
  }
}

const f = fnT(res => {
  console.log(res, '最终的结果')
})
f(1)(2)(3)(4)

